.class public Lcom/permission/runtime/i$a;
.super Ljava/lang/Object;
.source "PopupPermissionRequest.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/permission/runtime/i;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "a"
.end annotation


# instance fields
.field private a:Landroid/app/Activity;

.field private b:Lcom/permission/runtime/b;

.field private c:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method private constructor <init>(Landroid/app/Activity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/permission/runtime/i$a;->a:Landroid/app/Activity;

    return-void
.end method

.method public static a(Landroid/app/Activity;)Lcom/permission/runtime/i$a;
    .locals 1

    .line 1
    new-instance v0, Lcom/permission/runtime/i$a;

    invoke-direct {v0, p0}, Lcom/permission/runtime/i$a;-><init>(Landroid/app/Activity;)V

    return-object v0
.end method


# virtual methods
.method public a(Lcom/permission/runtime/b;)Lcom/permission/runtime/i$a;
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/permission/runtime/i$a;->b:Lcom/permission/runtime/b;

    return-object p0
.end method

.method public a(Ljava/util/HashMap;)Lcom/permission/runtime/i$a;
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;)",
            "Lcom/permission/runtime/i$a;"
        }
    .end annotation

    .line 2
    iput-object p1, p0, Lcom/permission/runtime/i$a;->c:Ljava/util/HashMap;

    return-object p0
.end method

.method public a()Lcom/permission/runtime/i;
    .locals 3

    .line 4
    iget-object v0, p0, Lcom/permission/runtime/i$a;->c:Ljava/util/HashMap;

    const-string v1, "android.permission.SYSTEM_ALERT_WINDOW"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 5
    new-instance v0, Lcom/permission/runtime/h;

    iget-object v2, p0, Lcom/permission/runtime/i$a;->a:Landroid/app/Activity;

    invoke-direct {v0, v2}, Lcom/permission/runtime/h;-><init>(Landroid/app/Activity;)V

    .line 6
    iget-object v2, p0, Lcom/permission/runtime/i$a;->c:Ljava/util/HashMap;

    invoke-virtual {v2, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/permission/runtime/h;->a(I)V

    goto :goto_0

    .line 7
    :cond_0
    iget-object v0, p0, Lcom/permission/runtime/i$a;->c:Ljava/util/HashMap;

    const-string v1, "android.permission.WRITE_SETTINGS"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 8
    new-instance v0, Lcom/permission/runtime/j;

    iget-object v2, p0, Lcom/permission/runtime/i$a;->a:Landroid/app/Activity;

    invoke-direct {v0, v2}, Lcom/permission/runtime/j;-><init>(Landroid/app/Activity;)V

    .line 9
    iget-object v2, p0, Lcom/permission/runtime/i$a;->c:Ljava/util/HashMap;

    invoke-virtual {v2, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/permission/runtime/j;->a(I)V

    goto :goto_0

    .line 10
    :cond_1
    new-instance v0, Lcom/permission/runtime/g;

    iget-object v1, p0, Lcom/permission/runtime/i$a;->a:Landroid/app/Activity;

    iget-object v2, p0, Lcom/permission/runtime/i$a;->c:Ljava/util/HashMap;

    invoke-direct {v0, v1, v2}, Lcom/permission/runtime/g;-><init>(Landroid/app/Activity;Ljava/util/HashMap;)V

    .line 11
    :goto_0
    iget-object v1, p0, Lcom/permission/runtime/i$a;->b:Lcom/permission/runtime/b;

    invoke-virtual {v0, v1}, Lcom/permission/runtime/i;->a(Lcom/permission/runtime/b;)V

    return-object v0
.end method
